@media screen and (max-width:568px) {
    .mobile{display: block;}
}
@media screen and (min-width:568px) {
    .mobile{display: none;}
}
html,body{
    margin: 0;
    padding: 0;
    background: #f7f7f7;
    letter-spacing: 0.5px;
    font-size: 16px;
    font-family: -apple-system,BlinkMacSystemFont,"PingFang SC","Droid Sans",Helvetica,sans-serif;
}
.flexBox{display: flex;}
// @font-face {
//     font-family: 'iconfont';
//     src: url('iconfont.woff2?t=1664504622278') format('woff2'),
//          url('iconfont.woff?t=1664504622278') format('woff'),
//          url('iconfont.ttf?t=1664504622278') format('truetype');
//   }
.iconfont {
    font-family: "iconfont" !important;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: block;
    width: 20px;
    height: 20px;
    font-size: 20px;
    text-align: center;
    color: #818181;
}


.mobile{position: relative;}
// 头部
header{
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: #fff;
    // 功能区域
    .functional_domain{
        justify-content: space-between;
        align-items: center;
        margin: 8px 0;
        .showMore,.showMessage{
            display: block;
            margin: 0 20px;
            width: 20px;
            height: 35px;
            line-height: 35px;
        }
        .showMore{color: #00bb30;}
        .showMessage{
            font-size: 25px;
            color: #00bb30;
            line-height: 35px;
        }

        .searchBar{
            flex-grow: 1;
            background: #eef4f0;
            height: 35px;
            border-radius: 12px;
            color: #98a49a;
            align-items: center;
            justify-content: center;
            .placeholder{
                margin-left: 5px;
                line-height: 35px;
                font-size: 14px;
            }
        }
    }
}

// 滑块  黑色线条
.afterSlider{
    display: none;
    position: absolute;
    bottom: -1px;
    left: 0;
    z-index: 100;
    margin: 0 2px;
    // width: 32px;
    height: 3px;
    border-radius: 1.5px;
    background: #000;
    transition: all 0.15s ease;
}

// 侧边
aside{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: 100%;
    .main{
        position: relative;
        left: -80%;
        float: left;
        width: 80%;
        height: 100%;
        border-top-right-radius: 1rem;
        border-bottom-right-radius: 1rem;
        background: #f7f7f7;
        transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
        .hd{
            justify-content: space-between;
            margin: 20px 0;
            width: 100%;
            span{
                margin: 0 20px;
                width: 25px;
                height: 25px;
                font-size: 25px;
            }
        }
        .mid{
            .user{
                align-items: center;
                margin: 30px 10px;
                .avatar{
                    margin-right: 10px;
                    width: 40px;
                    height: 40px;
                    border-radius: 50%;
                    border: 1px solid #e0e0e0;
                    overflow: hidden;
                    img{width: 100%;height: 100%;}
                }
                .username{
                    font-weight: bold;
                }
            }
            .userFuncArea{
                padding: 0 20px;
                .top{
                    padding: 5px 0;
                    border-bottom: 1px solid #e0e0e0;
                }
                .bottom{padding: 5px 0;}
                .item{
                    padding: 8px 0;
                    line-height: 25px;
                    justify-content: space-between;
                    align-items: center;
                    .iconfont{
                        margin: 0 15px 0 2px;
                        width: 25px;
                        height: 25px;
                        font-size: 22px;
                    }
                    .text{
                        flex-grow: 1;
                        font-size: 15px;
                    }
                    .rightText{
                        font-size: 12px;
                        color: #818181;
                    }
                }
            }
        }
        .bd{
            position: absolute;
            bottom: 0;
            width: 100%;
            .topFuncArea{
                align-content: space-between;
                flex-wrap: wrap;
                margin: 0 10px;
                padding: 10px 0;
                height: 110px;
                background: #fff;
                border-radius: 1rem;
                .item{
                    width: 33.3%;
                    align-items: center;
                    flex-direction: column;
                    .iconfont{
                        background-size: contain;
                        background-position: center center;
                        background-repeat: no-repeat;
                        width: 26px;
                        height: 26px;
                        margin: 5px 0;
                    }
                    .text{
                        margin-bottom: 5px;
                        font-size: 12px;
                        color: #818181;
                    }
                    .order{background-image: url('../img/icon/副页-订单.png');}
                    .cart{background-image: url('../img/icon/副页-购物车.png');}
                    .wallet{background-image: url('../img/icon/副页-钱包.png');}
                    .db_time{background-image: url('../img/icon/副页-豆瓣时间.png');}
                    .db_bookshelf{background-image: url('../img/icon/副页-豆瓣阅读书架.png');}
                }
            }
            .license{
                margin: 20px 0;
                padding: 0 10px;
                text-align: center;
                line-height: 25px;
                img{
                    width: 50px;
                    height: 25px;
                    vertical-align: middle;
                }
                span{
                    display: inline-block;
                    font-size: 12px;
                    color: #bebebe;
                }
                span.iconfont{
                    font-size: 13px;
                }

            }
        }
    }
    .mask{
        width: 100%;
        height: 100%;
        transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
        background-color: rgba(0, 0, 0, 0.5);
    }
}

// 底部
footer{
    position: fixed;
    bottom: -1px;
    left: 0;
    z-index: 999;
    width: 100%;
    background: #fff;
    font-size: 10px;
    color: #818181;

    .container{
        justify-content: space-between;
        align-items: center;
    }
    
    .item{
        justify-content: center;
        align-items: center;
        flex-direction: column;
        padding: 10px 0;
        width: 20%;
        .iconfont{
            width: 30px;
            height: 30px;
            font-size: 30px;
            color: #818181;
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center center;
        }
        .avatar{
            width: 30px;
            height: 30px;
            border-radius: 50%;
            text-align: center;
            overflow: hidden;
            img{width: 100%;height: 100%;}
        }
        .text{margin-top: 5px;}
    }
    // 未选中
    #index .iconfont{background-image: url('../img/icon/index_unselected.png');}
    #media .iconfont{background-image: url('../img/icon/media_unselected.png');}
    #group .iconfont{background-image: url('../img/icon/group_unselected.png');}
    #market .iconfont{background-image: url('../img/icon/market_unselected.png');}
    #user .iconfont{background-image: url('../img/icon/user_unselected.png');}
    
    // 选中
    #index.current .iconfont{background-image: url('../img/icon/index_selected.png');}
    #media.current .iconfont{background-image: url('../img/icon/media_selected.png');}
    #group.current .iconfont{background-image: url('../img/icon/group_selected.png');}
    #market.current .iconfont{background-image: url('../img/icon/market_selected.png');}
    #user.current .iconfont{background-image: url('../img/icon/user_selected.png');}
    .current{
        color: #00bb30;
        animation: bgColorChange 0.2s ease;
    }
    @keyframes bgColorChange {
        0%{background-color: rgba(0, 0, 0, 0);}
        50%{background-color: rgba(0, 0, 0, 0.03);}
        100%{background-color: rgba(0, 0, 0, 0);}
    }
    
    
    // 发布动态按钮
    .publish_icon{
        position: absolute;
        top: -100%;
        right: 15px;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: #191919;
        border: 1px solid #191919;
        background-image: url('../img/icon/publish_status_pen.png');
        background-size: 60%;
        background-repeat: no-repeat;
        background-position: center center;
        box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
    }

    // 去往购物车页面
    .go_to_cart_page{
        display: block;
        position: absolute;
        top: -100%;
        right: 15px;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: #fff;
        background-image: url('../img/icon/cart.png');
        background-size: 50%;
        background-repeat: no-repeat;
        background-position: center center;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);

    }
}